const {resolve} = require('path')
const config = require('./src/config/index-vite.js')
var obj = {
	alias: {
         '/@/': resolve(__dirname, './src')
    },
	proxy:{
		
	},
	pluginOptions: {
      'style-resources-loader': {
        preProcessor: 'scss',
        patterns: []
      }
    },
	base:'./', // 线上地址
	outDir:'./servers/statics/adminmanage',
	assetsDir:'./public/'
}
obj.proxy[config.baseUrl.dev] = {
	target: config.localUrl,
    changeOrigin: true,
    rewrite: path => path.replace(/^\/api/, '')
}
export default obj